//
//  ViewController.m
//  JXPlayer
//
//  Created by bijan on 2016/12/13.
//  Copyright © 2016年 bijan. All rights reserved.
//

#import "ViewController.h"
#import "TempPlayerController.h"
@interface ViewController ()

@end

@implementation ViewController



- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIButton *startBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 30, 30)];
    [startBtn setTitle:@"StartPlay" forState:UIControlStateNormal];
    [startBtn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [self.view addSubview:startBtn];
    [startBtn sizeToFit];
    startBtn.center = self.view.center;
    [startBtn addTarget:self action:@selector(play:) forControlEvents:UIControlEventTouchUpInside];

}

- (void)play:(UIButton*)sender{
    
    TempPlayerController *vc = [TempPlayerController new];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
